<template>
  <div class="header">
     <p>header</p>
     <button @click="add">add</button>
     
  </div>
</template>

<script setup>

import  {useStore}  from 'vuex'
const store=useStore()
const add=()=>{
  //修改仓库中state中的count
  // store.state.count++

  // mutation
  // store.commit("add",10)  

  // action
  // store.dispatch('addAction',10)

  // geters
  store.getters('')
}

</script>

<style  scoped>

</style>